/*
  学习目标：事件传值
  步骤：
     1. 
     2. 
     3. 
*/

import React from 'react';
import ReactDOM from 'react-dom';

class App extends React.Component {
  render() {
    return (
      <div>
        <button onClick={(e) => this.handelClick(1, e, 3)}>点我传值</button>

        {/* 简写 */}
        {/* <button onClick={(e) => this.handelClick(1, e, 2)}>点我传值</button> */}
      </div>
    );
  }
  handelClick(num, e, num2) {
    console.log(num, e, num2);
  }
}

ReactDOM.render(<App></App>, document.getElementById('root'));
